package com.twp.imtest;

import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class FragmentPageMe extends Fragment {

    private static FragmentPageMe mInstance;

    public static FragmentPageMe getInstance() {
        if (mInstance == null) {
            mInstance = new FragmentPageMe();
        }
        return mInstance;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        TextView textView = new TextView(getActivity());
        textView.setText("我是 我的页面");
        textView.setTextColor(Color.RED);
        return textView;
    }
}
